import request from '@/utils/request'

// 查询招待审批列表
export function listOaReceiveApproval(query) {
  return request({
    url: '/module/oaReceiveApproval/list',
    method: 'get',
    params: query
  })
}

// 查询招待审批详细
export function getOaReceiveApproval(id) {
  return request({
    url: '/module/oaReceiveApproval/' + id,
    method: 'get'
  })
}

// 新增招待审批
export function addOaReceiveApproval(data) {
  return request({
    url: '/module/oaReceiveApproval',
    method: 'post',
    data: data
  })
}

// 修改招待审批
export function updateOaReceiveApproval(data) {
  return request({
    url: '/module/oaReceiveApproval',
    method: 'put',
    data: data
  })
}

// 删除招待审批
export function delOaReceiveApproval(id) {
  return request({
    url: '/module/oaReceiveApproval/' + id,
    method: 'delete'
  })
}
